@extends('layouts.student')

@section('content')
<div class="page-content">

	<div class="row">

		<div class="col-xs-12">

			<h3 class="header smaller lighter blue">双向选择结果</h3>

			<div class="table-responsive">

				<table id="sample-table-2" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th>导师姓名</th>
							<th class="hidden-480">职务</th>
							<th class="hidden-480">职称</th>
							<th>手机</th>
							<th class="hidden-480">邮箱</th>
							<th class="hidden-480">可指导名额</th>
							<th>剩余名额</th>
							<th>是否同意选择</th>
						</tr>
					</thead>
					<tbody>
						@foreach($selectedSupervisors as $supervisor)
						<tr>
							<td>
								<a href="#">{{$supervisor->user->name}}</a>
							</td>
							<td class="hidden-480">{{$supervisor->job}}</td>
							<td class="hidden-480">{{$supervisor->title}}</td>
							<td>
								{{$supervisor->user->phone}}
							</td>
							<td class="hidden-480">
								{{$supervisor->user->email}}
							</td>
							<td class="hidden-480">
								{{$supervisor->quota}}
							</td>
							<td>
								{{$supervisor->residue}}
							</td>
							<td>
								@if($supervisor->pivot->isApproved == true)
									同意
								@else
									暂未审核
								@endif
							</td>
						</tr>
						@endforeach
					</tbody>

				</table>

			</div>
			
		</div>

	</div>

</div>
@endsection

